package com.hkts.management.contract.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hkts.management.common.utils.Result;
import com.hkts.management.contract.entity.HktsContract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.management.model.VO.HktsContractOnPCVo;
import com.hkts.management.model.result.ResultData;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hml
 * @since 2021-04-22
 */
public interface IHktsContractService extends IService<HktsContract> {

    /**
     * 分页查询
     *
     * @param page
     * @param hktsContract
     * @return
     */
    IPage<HktsContract> selectPage(Page<HktsContract> page, HktsContract hktsContract);

    List<HktsContract> selectList(HktsContract hktsContract);

    Map<String, Object> getContractByOrderId(String orderId);

    Result<Object> updateContract(HktsContract contract);

    HktsContractOnPCVo getContractByOrderIdOnPC(String orderId);
}